package com.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "lagou-service-code",path = "/code")
public interface CodeService {

    @GetMapping("/create/{email}")
    boolean create(@PathVariable String email);

    @GetMapping("/validate/{email}/{code}")
    boolean validate(@PathVariable String email,@PathVariable String code);
}
